<?php
namespace app\admin\model;

use app\model\Base;

class UserBalanceLog extends Base
{
    public function getAmountFormatAttr($value, $data)
    {
        return (int)$data['amount'] / 100;
    }

    public function getBeforeFormatAttr($value, $data)
    {
        return (int)$data['before'] / 100;
    }

    public function getTypeFormatAttr($value, $data)
    {
        return Base::$walletLogDesArray[$data['type']];
    }
}